home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / Libraries / BSP Tree 1.2 / Sources / Graphics / include / transform_3d.h < prev    next >
Encoding:
Text File  |  1995-03-25  |  1.5 KB  |  31 lines  |  [TEXT/MMCC]

  1. //------------------------------------------------------------------------------
  2. //    File:                    transform.h
  3. //    Date:                    9/4/94
  4. //    Author:                Bretton Wade
  5. //
  6. //    Description:    this file contains methods for the transformations matrices
  7. //
  8. //------------------------------------------------------------------------------
  9.  
  10. #include "vector_3d.h"
  11. #include "point_3d.h"
  12. #include "matrix_3d.h"
  13.  
  14. #ifndef    TRANSFORM
  15. #define    TRANSFORM
  16.  
  17. //------------------------------------------------------------------------------
  18. //    Functions
  19. //------------------------------------------------------------------------------
  20. matrix_3d    RotateX (real angle);                                                                                                        //    build a transformation matrix_3d
  21. matrix_3d    RotateY (real angle);                                                                                                        //    build a transformation matrix_3d
  22. matrix_3d    RotateZ (real angle);                                                                                                        //    build a transformation matrix_3d
  23. matrix_3d    Translate (real x, real y, real z);                                                                            //    build a transformation matrix_3d
  24. matrix_3d    Scale (real x, real y, real z);                                                                                    //    build a transformation matrix_3d
  25. matrix_3d    Perspective (real distance);                                                                                        //    build a transformation matrix_3d
  26. matrix_3d    VectorMatrix (tuple_3d &n);                                                                                            //    build a vector_3d rotation matrix_3d
  27. matrix_3d    ViewMatrix (const vector_3d &u, const vector_3d &v, const vector_3d &n, const point_3d &r);    //    build a viewing matrix_3d from a vector_3d set
  28.  
  29. //------------------------------------------------------------------------------
  30.  
  31. #endif    //TRANSFORM